package core;

public class LookupTables {

    public static float[] sin;
    public static float[] cos;

    public static void init(){

        //产生一个用于快速获得三角函数值的查找表
        sin = new float[361];
        cos = new float[361];
        for(int i = 0; i < 361; i ++){
            sin[i] = (float)Math.sin(Math.PI*i/180);
            cos[i] = (float)Math.cos(Math.PI*i/180);
        }
    }
}
